echo "start packaging"
mvn clean package -Dfile.encoding=UTF-8 -Dmaven.test.skip=true -Ppre
echo "==== deploy api ====="
#
scp -P 22 -i /Users/guojialin/.ssh/dev_key2.pem /Users/guojialin/Workspace/Backend/lifepage-ai/chat/target/chat-1.0.0-SNAPSHOT.war root@8.134.192.59:/deploy/pre/ai/code/
#ssh -P 22 -i /Users/guojialin/.ssh/dev_key2.pem root@8.134.192.59 'sh /deploy/pre/sh/deploy-pre-server.sh'
#
sleep 1

echo "==== file uploaded! ===="